<?php
$pem = file_get_contents("./rsa_public_key.pem");
$encode = base64_encode($pem);
echo $encode . "\n";

file_put_contents("./public_key_base64_encode.txt",$encode);